package com.hx.myblog3.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hx.myblog3.entity.User;
import com.hx.myblog3.repository.UserRepo;

@Component
public class UserService {
	@Autowired
	private UserRepo ur;
	
	public User loginCheck( String name,String pass){
		return ur.findByUserNameAndPassword(name, pass);
	}

}
